import java.util.Scanner;

public class L3 {
    public static void main(String []args){
        Scanner in=new Scanner(System.in);
        System.out.println("输入商品价格：");
        int price=in.nextInt();
        Scanner sc=new Scanner(System.in);
        System.out.println("亲，要包邮吗：");
        String answer=sc.nextLine();

        switch (answer){
            case"yes":
                System.out.println("总价格："+20+price);
                break;
            case"no":
                System.out.println("总价格："+price);
                break;
            default:

                System.out.println("请输入yes或者no");
                break;

        }
        System.out.println("程序结束。");
    }
}
